package EX2;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class demo3_2 {
    public static void main(String[] args) throws IOException {
        File f=new File("C:/filea/a.txt");
        OutputStream os=new FileOutputStream(f,true);
        String s=new String("我爱你世界！");
        os.write(s.getBytes());
        //os.write(1);乱码
        os.flush();

    }
}
